package cn.mabach.order.service;

import cn.mabach.DTO.PageUtils;
import cn.mabach.DTO.RS;
import cn.mabach.order.entity.OrderLogEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
/**
 * 
 *
 * @author chenshun
 * @email 176468159@qq.com
 * @date 2019-12-19 22:31:14
 */
@Api(tags = "订单日志服务接口")
public interface OrderLogService   {


    @GetMapping("/listOrderLog")
    @ApiOperation(value = "分页查询")
    RS<PageUtils> queryPage(@RequestParam Map<String, Object> params);

    @GetMapping("/infoOrderLog")
    @ApiOperation(value = "根据id查找")
    RS<OrderLogEntity> getByIdE(@RequestParam("id") String id);

    @PostMapping("/saveOrderLog")
    @ApiOperation(value = "保存")
    RS saveE(@RequestBody OrderLogEntity entity);

    @PostMapping("/updateOrderLog")
    @ApiOperation(value = "修改")
    RS updateByIdE(@RequestBody OrderLogEntity entity);

    @PostMapping("/deleteOrderLog")
    @ApiOperation(value = "根据ID集合删除")
    RS removeByIdsE(@RequestBody List<String> ids);
}

